var _na_nacc,_yl_nvid = "VISITOR_CLIENT_NO_COOKIE_SUPPORT",_yl_nvtm = 0,_yl_nvfi = 0,_yl_nvsf = 0,_yl_nstm = 0,_yl_nurl = "",_yl_ntit = "",_yl_nref = "",_yl_nres = "",_yl_nlag = "",_yl_nscd = "",_yl_nlmf = 0,_yl_flsh = "",_yl_nssn = "",_yl_surv = 0,kwvalues = "yaolan", _yl_utmb = 0, _yl_utma;
function _yl_void() {
}
var _yl_domain_array = ['yaolan.com'],_yl_cdmn = yl_get_domain(),_yl_src_addr = "//ya.yaolan.com";
function ylTracker() {
var d = new Date().getTime();
_yl_nurl = encodeURIComponent(document.location);
_yl_ntit = encodeURIComponent(document.title);
_yl_nref = encodeURIComponent(document.referrer);
var meta = document.getElementsByTagName("meta");
_yl_keywords = '';
for(var i=0;i<meta.length;i++){
	  if(meta[i].getAttribute('name')=='keywords'){
       if(meta[i].getAttribute('content')!=null&&meta[i].getAttribute('content')!=''){
	       _yl_keywords = meta[i].getAttribute('content');
		   _yl_keywords = encodeURIComponent(_yl_keywords);
	   }
	  }	
}
_yl_flsh = ya_get_flashver();
var now = (new Date()).getTime();
document.cookie = "__yl__test__cookies=" + now;
var _yl_cookie_enabled = (yl_get_cookie("__yl__test__cookies") == now) ? true : false;
if (_yl_nurl.indexOf("http") != 0)return;
var run_flag = 0;
for (i = 0; i < _yl_domain_array.length; i++) {
if (_yl_cdmn == "." + _yl_domain_array[i]) {
run_flag = 1;
break
}
}
//检查_yl_utmb的cookie是否还存在，如果不存在，要新中，且更新_yl_utma里的cookie值
_yl_utmb = yl_get_cookie("_yl_utmb"); //30分钟
_yl_utma = yl_get_cookie("_yl_utma"); //2年

var _yl_utm = new Date();
var _yl_utm_tmp = 0;
if(_yl_utma == -1){
	_yl_utm_tmp = _yl_utm.getTime();
}else{
	_yl_utm_tmp = _yl_utma.substr(_yl_utma.indexOf(".")+1);
}
_yl_ct = yl_get_cookie("_yl_ct"); //10年
var _yl_ct_tmp = _yl_ct;
var _yl_ct_exp = 1000*60*60*24*365*10;
if(_yl_ct == -1){
_yl_ct_tmp = _yl_utm.getTime();	
yl_set_cookie_new("_yl_ct", _yl_utm.getTime(), _yl_ct_exp);
}else{
yl_set_cookie_new("_yl_ct", _yl_utm.getTime(), _yl_ct_exp);
}
var _yl_itv = _yl_utm.getTime() - _yl_ct_tmp;

var _yl_utmcc = _yl_utma;
var _yl_utm = new Date();
var _yl_fr = 1;
if(_yl_utmb == -1){
	_yl_fr = 1;
	yl_set_cookie_new("_yl_fr", _yl_fr, 1000*60*30);
	yl_set_cookie_new("_yl_utmb", _yl_utm.getTime(), 1000*60*30);
	yl_set_cookie_new("_yl_utma", _yl_utm_tmp+"."+_yl_utm.getTime(),1000*60*60*24*365*2);
	_yl_utmcc = _yl_utm_tmp+"."+_yl_utm.getTime();
}else{
	_yl_fr = yl_get_cookie("_yl_fr");
	_yl_fr = parseInt(_yl_fr) + 1;
	yl_set_cookie_new("_yl_fr", _yl_fr, 1000*60*30);
	yl_set_cookie_new("_yl_utmb", _yl_utmb, 1000*60*30);
	yl_set_cookie_new("_yl_utma", _yl_utma, 1000*60*60*24*365*2);
}
if (run_flag == 1) {
var _yl_user_id = encodeURIComponent(yl_get_cookie("TheID"));
var _yl_user_name = yl_get_cookie("MEMUSER");
var _yl_user_baby_birth = encodeURIComponent(yl_get_cookie("babybirth"));
var _yl_nvid = yl_get_cookie("_yl_nvid");
if(_yl_nvid == -1){
_yl_nvid = fetch_visitor_hash();
yl_set_cookie_long("_yl_ft", d);
yl_set_cookie_long("_yl_nvid", _yl_nvid);
}
var _yl_ft=yl_get_cookie("_yl_ft");
_yl_nssn = yl_get_cookie("user_name");
if (_yl_nssn == -1) {
_yl_nssn = ""
}else{
_yl_nssn = _yl_nssn.substr(0, _yl_nssn.indexOf("|"))
}
yl_get_navigation_info();
var _yl_q = "&_nvid=" + _yl_nvid + "&userid=" + _yl_user_id;
_yl_q += "&babybirth=" + _yl_user_baby_birth + "&username=" + _yl_user_name;
_yl_q += "&_nurl=" + _yl_nurl + "&_ntit=" + _yl_ntit+"&_keywords="+_yl_keywords;
_yl_q += "&_nref=" + _yl_nref + "&_d=" + d + "&cc=" + _yl_utmcc + "&_yl_ft="+_yl_ft;
_yl_q += "&_yl_itv="+_yl_itv+"."+_yl_fr+"&";

if (typeof(abtest) != "undefined" ) {_yl_q +="_yl_abtest="+abtest;}

var _img = new Image();
_img.onload = function() {
_yl_void()
};
_img.src = _yl_src_addr + "/ya.jpg?" + _yl_q;
}
}
function yl_get_navigation_info() {
_yl_nres = "-";
_yl_nscd = "-";
_yl_nlag = "-";
if (self.screen) {
_yl_nres = screen.width + "x" + screen.height;
_yl_nscd = screen.colorDepth + "-bit"
} else if (self.java) {
var j = java.awt.Toolkit.getDefaultToolkit(),s = j.getScreenSize();
_yl_nres = s.width + "x" + s.height
}
if (navigator.language) {
_yl_nlag = navigator.language.toLowerCase()
} else if (navigator.browserLanguage) {
_yl_nlag = navigator.browserLanguage.toLowerCase()
}
var d = new Date(document.lastModified);
_yl_nlmf = d.getTime() / 1000
}
function fetch_visitor_hash() {
var d = new Date();
var s = ya_str_to_ent(d.getTime() + Math.random() + document.location + document.referrer + screen.width + screen.height + navigator.userAgent + document.cookie);
return ya_hex_md5(s)
}
function yl_get_domain() {
var domain_name = document.domain,arr_domain_name = domain_name.split("."),domain_name_length = arr_domain_name.length,pattern = /^\d+$/g;
if (pattern.test(arr_domain_name[domain_name_length - 1])) {
return domain_name
}
if (arr_domain_name.length < 3) {
return "." + domain_name
}
var domain_suffixes = ['com','net','org','gov','co'],i,suffix_found = false;
for (i = 0; i < domain_suffixes.length; i++) {
if (arr_domain_name[domain_name_length - 2] == domain_suffixes[i]) {
suffix_found = true
}
}
if (!suffix_found) {
return "." + arr_domain_name[domain_name_length - 2] + "." + arr_domain_name[domain_name_length - 1]
} else {
return "." + arr_domain_name[domain_name_length - 3] + "." + arr_domain_name[domain_name_length - 2] + "." + arr_domain_name[domain_name_length - 1]
}
}
function yl_set_cookie_long(name, value) {
var _yl_epd = new Date();
_yl_epd.setTime(_yl_epd.getTime() + 1000 * 60 * 60 * 24 * 365 * 100);
document.cookie = name + "=" + value + ";expires=" + _yl_epd.toGMTString() + ";path=/;domain=" + _yl_cdmn
}
function yl_set_cookie(name, value) {
var _yl_epd = new Date();
_yl_epd.setTime(_yl_epd.getTime() + 0);
document.cookie = name + "=" + value + ";path=/;domain=" + _yl_cdmn
}
function yl_set_cookie_new(name, value, expires) {
if (!expires || expires == "") {
expires = 1000 * 60 * 60 * 24 * 365 * 1
}
var _yl_epd = new Date();
_yl_epd.setTime(_yl_epd.getTime() + expires);
document.cookie = name + "=" + value + ";expires=" + _yl_epd.toGMTString() + ";path=/;domain=" + _yl_cdmn
}
function yl_get_cookie(name) {
var _yl_dc = document.cookie,_yl_cname = name + "=",_yl_clen = _yl_dc.length,_yl_cbegin = 0;
while (_yl_cbegin < _yl_clen) {
var _yl_vbegin = _yl_cbegin + _yl_cname.length;
if (_yl_dc.substring(_yl_cbegin, _yl_vbegin) == _yl_cname) {
var _yl_vend = _yl_dc.indexOf(";", _yl_vbegin);
if (_yl_vend == -1)_yl_vend = _yl_clen;
return _yl_dc.substring(_yl_vbegin, _yl_vend);
}
_yl_cbegin = _yl_dc.indexOf(" ", _yl_cbegin) + 1;
if (_yl_cbegin == 0)break
}
return-1
}
function ya_get_flashver() {
var f = "",n = navigator;
if (n.plugins && n.plugins.length) {
for (var ii = 0; ii < n.plugins.length; ii++) {
if (n.plugins[ii].name.indexOf('Shockwave Flash') != -1) {
f = n.plugins[ii].description.split('Shockwave Flash')[1];
break
}
}
} else if (window.ActiveXObject) {
for (var ii = 10; ii >= 2; ii--) {
try {
var fl = eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + ii + "');");
if (fl) {
f = ii + '.0';
break
}
} catch(e) {
}
}
}
return f
}
var _yl_hexcase = 0,_yl_chrsz = 8;
function ya_hex_md5(s) {
return ya_binl2hex(ya_core_md5(ya_str2binl(s), s.length * _yl_chrsz))
}
function ya_core_md5(x, len) {
x[len >> 5] |= 0x80 << ((len) % 32);
x[(((len + 64) >>> 9) << 4) + 14] = len;
var a = 1732584193,b = -271733879,c = -1732584194,d = 271733878;
for (var i = 0; i < x.length; i += 16) {
var olda = a,oldb = b,oldc = c,oldd = d;
a = ya_md5_ff(a, b, c, d, x[i + 0], 7, -680876936);
d = ya_md5_ff(d, a, b, c, x[i + 1], 12, -389564586);
c = ya_md5_ff(c, d, a, b, x[i + 2], 17, 606105819);
b = ya_md5_ff(b, c, d, a, x[i + 3], 22, -1044525330);
a = ya_md5_ff(a, b, c, d, x[i + 4], 7, -176418897);
d = ya_md5_ff(d, a, b, c, x[i + 5], 12, 1200080426);
c = ya_md5_ff(c, d, a, b, x[i + 6], 17, -1473231341);
b = ya_md5_ff(b, c, d, a, x[i + 7], 22, -45705983);
a = ya_md5_ff(a, b, c, d, x[i + 8], 7, 1770035416);
d = ya_md5_ff(d, a, b, c, x[i + 9], 12, -1958414417);
c = ya_md5_ff(c, d, a, b, x[i + 10], 17, -42063);
b = ya_md5_ff(b, c, d, a, x[i + 11], 22, -1990404162);
a = ya_md5_ff(a, b, c, d, x[i + 12], 7, 1804603682);
d = ya_md5_ff(d, a, b, c, x[i + 13], 12, -40341101);
c = ya_md5_ff(c, d, a, b, x[i + 14], 17, -1502002290);
b = ya_md5_ff(b, c, d, a, x[i + 15], 22, 1236535329);
a = ya_md5_gg(a, b, c, d, x[i + 1], 5, -165796510);
d = ya_md5_gg(d, a, b, c, x[i + 6], 9, -1069501632);
c = ya_md5_gg(c, d, a, b, x[i + 11], 14, 643717713);
b = ya_md5_gg(b, c, d, a, x[i + 0], 20, -373897302);
a = ya_md5_gg(a, b, c, d, x[i + 5], 5, -701558691);
d = ya_md5_gg(d, a, b, c, x[i + 10], 9, 38016083);
c = ya_md5_gg(c, d, a, b, x[i + 15], 14, -660478335);
b = ya_md5_gg(b, c, d, a, x[i + 4], 20, -405537848);
a = ya_md5_gg(a, b, c, d, x[i + 9], 5, 568446438);
d = ya_md5_gg(d, a, b, c, x[i + 14], 9, -1019803690);
c = ya_md5_gg(c, d, a, b, x[i + 3], 14, -187363961);
b = ya_md5_gg(b, c, d, a, x[i + 8], 20, 1163531501);
a = ya_md5_gg(a, b, c, d, x[i + 13], 5, -1444681467);
d = ya_md5_gg(d, a, b, c, x[i + 2], 9, -51403784);
c = ya_md5_gg(c, d, a, b, x[i + 7], 14, 1735328473);
b = ya_md5_gg(b, c, d, a, x[i + 12], 20, -1926607734);
a = ya_md5_hh(a, b, c, d, x[i + 5], 4, -378558);
d = ya_md5_hh(d, a, b, c, x[i + 8], 11, -2022574463);
c = ya_md5_hh(c, d, a, b, x[i + 11], 16, 1839030562);
b = ya_md5_hh(b, c, d, a, x[i + 14], 23, -35309556);
a = ya_md5_hh(a, b, c, d, x[i + 1], 4, -1530992060);
d = ya_md5_hh(d, a, b, c, x[i + 4], 11, 1272893353);
c = ya_md5_hh(c, d, a, b, x[i + 7], 16, -155497632);
b = ya_md5_hh(b, c, d, a, x[i + 10], 23, -1094730640);
a = ya_md5_hh(a, b, c, d, x[i + 13], 4, 681279174);
d = ya_md5_hh(d, a, b, c, x[i + 0], 11, -358537222);
c = ya_md5_hh(c, d, a, b, x[i + 3], 16, -722521979);
b = ya_md5_hh(b, c, d, a, x[i + 6], 23, 76029189);
a = ya_md5_hh(a, b, c, d, x[i + 9], 4, -640364487);
d = ya_md5_hh(d, a, b, c, x[i + 12], 11, -421815835);
c = ya_md5_hh(c, d, a, b, x[i + 15], 16, 530742520);
b = ya_md5_hh(b, c, d, a, x[i + 2], 23, -995338651);
a = ya_md5_ii(a, b, c, d, x[i + 0], 6, -198630844);
d = ya_md5_ii(d, a, b, c, x[i + 7], 10, 1126891415);
c = ya_md5_ii(c, d, a, b, x[i + 14], 15, -1416354905);
b = ya_md5_ii(b, c, d, a, x[i + 5], 21, -57434055);
a = ya_md5_ii(a, b, c, d, x[i + 12], 6, 1700485571);
d = ya_md5_ii(d, a, b, c, x[i + 3], 10, -1894986606);
c = ya_md5_ii(c, d, a, b, x[i + 10], 15, -1051523);
b = ya_md5_ii(b, c, d, a, x[i + 1], 21, -2054922799);
a = ya_md5_ii(a, b, c, d, x[i + 8], 6, 1873313359);
d = ya_md5_ii(d, a, b, c, x[i + 15], 10, -30611744);
c = ya_md5_ii(c, d, a, b, x[i + 6], 15, -1560198380);
b = ya_md5_ii(b, c, d, a, x[i + 13], 21, 1309151649);
a = ya_md5_ii(a, b, c, d, x[i + 4], 6, -145523070);
d = ya_md5_ii(d, a, b, c, x[i + 11], 10, -1120210379);
c = ya_md5_ii(c, d, a, b, x[i + 2], 15, 718787259);
b = ya_md5_ii(b, c, d, a, x[i + 9], 21, -343485551);
a = ya_safe_add(a, olda);
b = ya_safe_add(b, oldb);
c = ya_safe_add(c, oldc);
d = ya_safe_add(d, oldd)
}
return Array(a, b, c, d)
}
function ya_md5_cmn(q, a, b, x, s, t) {
return ya_safe_add(ya_bit_rol(ya_safe_add(ya_safe_add(a, q), ya_safe_add(x, t)), s), b)
}
function ya_md5_ff(a, b, c, d, x, s, t) {
return ya_md5_cmn((b & c) | ((~b) & d), a, b, x, s, t)
}
function ya_md5_gg(a, b, c, d, x, s, t) {
return ya_md5_cmn((b & d) | (c & (~d)), a, b, x, s, t)
}
function ya_md5_hh(a, b, c, d, x, s, t) {
return ya_md5_cmn(b ^ c ^ d, a, b, x, s, t)
}
function ya_md5_ii(a, b, c, d, x, s, t) {
return ya_md5_cmn(c ^ (b | (~d)), a, b, x, s, t)
}
function ya_safe_add(x, y) {
var lsw = (x & 0xFFFF) + (y & 0xFFFF),msw = (x >> 16) + (y >> 16) + (lsw >> 16);
return(msw << 16) | (lsw & 0xFFFF)
}
function ya_bit_rol(num, cnt) {
return(num << cnt) | (num >>> (32 - cnt))
}
function ya_str2binl(str) {
var bin = new Array(),mask = (1 << _yl_chrsz) - 1;
for (var i = 0; i < str.length * _yl_chrsz; i += _yl_chrsz)bin[i >> 5] |= (str.charCodeAt(i / _yl_chrsz) & mask) << (i % 32);
return bin
}
function ya_binl2hex(binarray) {
var hex_tab = _yl_hexcase ? "0123456789ABCDEF" : "0123456789abcdef",str = "";
for (var i = 0; i < binarray.length * 4; i++) {
str += hex_tab.charAt((binarray[i >> 2] >> ((i % 4) * 8 + 4)) & 0xF) + hex_tab.charAt((binarray[i >> 2] >> ((i % 4) * 8)) & 0xF)
}
return str
}
function ya_str_to_ent(str) {
var result = '',i;
for (i = 0; i < str.length; i++) {
var c = str.charCodeAt(i),tmp = '';
if (c > 255) {
while (c >= 1) {
tmp = "0123456789".charAt(c % 10) + tmp;
c = c / 10
}
if (tmp == '') {
tmp = "0"
}
tmp = "#" + tmp;
tmp = "&" + tmp;
tmp = tmp + ";";
result += tmp
} else {
result += str.charAt(i)
}
}
return result
}
ylTracker();

function yluser_tag() {
var yl_tag = yl_get_cookie("_yl_tag");
if(yl_tag == -1){
//document.writeln("<script src=\"http://usertag.yaolan.com/setUserTag.do\" type=\"text/javascript\" language=\"javascript\">");
//document.writeln("<\/script>");
}
var _yl_metas = document.getElementsByName("keywords");
var len = _yl_metas.length;
var meta_keywords = "";
if(len>=1){
meta_keywords = _yl_metas[0].content;
}
yl_tag = yl_get_cookie("_yl_tag");
if(yl_tag!=-1 && yl_tag!=""){
kwvalues = yl_tag;
} else if(meta_keywords != "")
{
kwvalues = meta_keywords;
}
return kwvalues;
}
kwvalues = yluser_tag();